package com.hwl.eduservice.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hwl.eduservice.pojo.Teacher;
import com.hwl.eduservice.pojo.vo.TeacherQueryVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 讲师 服务类
 * </p>
 *
 * @author long
 * @since 2021-09-21
 */
public interface TeacherService extends IService<Teacher> {

    /**
     * 条件查询讲师分页列表
     */
    IPage<Teacher> selectPage(Page<Teacher> teacherPage, TeacherQueryVo teacherQueryVo);

    /**
     * 根据name查询讲师
     */
    Teacher getTeaByName(String name);

    /**
     * 根据关键词模糊查询讲师
     */
    List<Map<String, Object>> selectNameList(String keyword);

    /**
     * 根据id删除讲师头像
     */
    boolean removeAvatarById(String id);

    /**
     * 获取该讲师的个人与课程信息
     */
    Map<String, Object> selectTeacherInfo(String id);

    /**
     * 前台获取热门讲师和课程信息
     */
    Map<String, Object> selectHot();
}
